<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>初始vue</title>
    <script type="text/javascript"  src="../js/vue.js"></script>
</head>


<body>
    
</body>

<script type="text/javascript">
    let obj ={x:100};
    let obj2={y:10};

    Object.defineProperty(obj2,"x",{
        // value:18,
        // enumerable:true,
        // writable:true,
        // configurable:true,
        get(){
            return obj.x;
        },
        set(value){
            obj.x=value;
        }
    })
</script>
</html>